Einhugur macOS Bridge plugin.

NSColor.FromIntegerPtr Method

Constructs NSColor object from Integer handle coming from declares or 3rd party plugin.

shared FromIntegerPtr(
   colorIntPtr as Integer) as EinhugurMacOSBridge.NSColor

Parameters

colorIntPtr
Integer handle coming from declare or 3rd party plugin that points to live NSColor object.

Returns

EinhugurMacOSBridge.NSColor

Remarks

Do not pass integer in here that is not actually NSColor handle, doing so would generate crash.

The NSColor class will handle retaining the object once and releasing once the object once the NSColor class is no longer used.

See Also

NSColor Class